<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class Rho_Controller</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> Rho_Controller</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The base controller class in the MVC pattern.</p>
<p class="description"><p>All controllers must extend from this class, either directly or indirectly.</p><p>For (X)HTML pages, extend the Rho_HTML_Controller instead.</p><p>Extend this class for other types of content (RSS feeds, XML, etc.)</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_HTML_Controller.html">Rho_HTML_Controller</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_rho---core.inc.php.html">/rho/core.inc.php</a> (line <span class="field">443</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../Rho/Rho_HTML_Controller.html">Rho_HTML_Controller</a>
					</td>
					<td>
											A base controller class for ouputting (X)HTML pages.
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$cache" title="details" class="var-name">$cache</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$content_type" title="details" class="var-name">$content_type</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$default_item_action" title="details" class="var-name">$default_item_action</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">bool</span>
					<a href="#$have_ob" title="details" class="var-name">$have_ob</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">bool</span>
					<a href="#$headers_sent" title="details" class="var-name">$headers_sent</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$item_id" title="details" class="var-name">$item_id</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">int</span>
					<a href="#$last_modified" title="details" class="var-name">$last_modified</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">bool</span>
					<a href="#$need_i18n" title="details" class="var-name">$need_i18n</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">mixed</span>
					<a href="#$uri" title="details" class="var-name">$uri</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">string</span>
					<a href="#$view_ext" title="details" class="var-name">$view_ext</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																															
				<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">Rho_Controller</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string|mixed</span>
										<a href="#cookie" title="details" class="method-name">cookie</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#determineAction" title="details" class="method-name">determineAction</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#dispatch" title="details" class="method-name">dispatch</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#get" title="details" class="method-name">get</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#getView" title="details" class="method-name">getView</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$extra</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#index" title="details" class="method-name">index</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#lastModified" title="details" class="method-name">lastModified</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#loadView" title="details" class="method-name">loadView</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$extra</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string|mixed</span>
										<a href="#post" title="details" class="method-name">post</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#route" title="details" class="method-name">route</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#sendHeaders" title="details" class="method-name">sendHeaders</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#sendNoCacheHeaders" title="details" class="method-name">sendNoCacheHeaders</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#_onError" title="details" class="method-name">_onError</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$e</span>)
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$cache" id="$cache"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$cache</span>
			 = <span class="var-default">10</span>			(line <span class="line-number">449</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> How long the CLIENT should cache the repsonse in MINUTES.  If this value is 0 (or there is a POST submission), then the client will be explicitly told not to cache the repsonse.  Client-side caching is always disabled when config setting 'dev_mode' is TRUE.  May be changed on an action by action basis.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$content_type" id="$content_type"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$content_type</span>
			 = <span class="var-default">'text/html'</span>			(line <span class="line-number">459</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The MIME content type of the controllers response.  May vary from controller action to action.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$default_item_action" id="$default_item_action"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$default_item_action</span>
			 = <span class="var-default">'view'</span>			(line <span class="line-number">472</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$have_ob" id="$have_ob"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">bool</span>
			<span class="var-name">$have_ob</span>
			 = <span class="var-default">FALSE</span>			(line <span class="line-number">478</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> If we have an output buffer (i.e. gz_handler). Used internally.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$headers_sent" id="$headers_sent"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">bool</span>
			<span class="var-name">$headers_sent</span>
			 = <span class="var-default">FALSE</span>			(line <span class="line-number">462</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Whether we've sent HTTP headers or not.</li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a></li>
			</ul>
	
	
		
		

</div>
<a name="var$item_id" id="$item_id"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$item_id</span>
			 = <span class="var-default">NULL</span>			(line <span class="line-number">470</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$last_modified" id="$last_modified"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$last_modified</span>
						(line <span class="line-number">455</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> Optional - When the result was last modified (e.g. from a database record timestamp) in UNIX time GMT.  Optionaly used for the Last-Modified header when dealing with modified-since requests when caching is enabled.  If this is value is set (i.e. not zero) and is greater than the current time less $cache minutes,  then this value will be used. May be changed on an action by action basis.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$need_i18n" id="$need_i18n"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">bool</span>
			<span class="var-name">$need_i18n</span>
			 = <span class="var-default">TRUE</span>			(line <span class="line-number">475</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> If this controller needs translation functions - default TRUE.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$uri" id="$uri"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$uri</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">468</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$view_ext" id="$view_ext"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$view_ext</span>
			 = <span class="var-default">'php'</span>			(line <span class="line-number">465</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">var:</span> The file name extension of the view files (without a dot). Defaults to 'php'.</li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">487</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Rho_Controller</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Rho/Rho_HTML_Controller.html#method__construct">Rho_HTML_Controller::__construct()</a>
								: Constructor - does nothing.
							</li>
				</ul>
	</div>
<a name="methodcookie" id="cookie"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">cookie</span> (line <span class="line-number">544</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Filtered access to $_COOKIE .</p>
<p class="description"><p>Uses this method instead of $_COOKIE directly.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> The filtered value or $default.</li>
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodpost">Rho_Controller::post()</a>, <a href="../Rho/Rho_Controller.html#methodget">Rho_Controller::get()</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho.html#methodfilter">Rho::filter()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string|mixed</span>
		<span class="method-name">
			cookie
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span><span class="var-description">: The key of the $_COOKIE array to access.</span>			</li>
					<li>
				<span class="var-type">string|int|float|bool</span>
				<span class="var-name">$default</span><span class="var-description">: Value to return if $key is not set.</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddetermineAction" id="determineAction"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">determineAction</span> (line <span class="line-number">594</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">return:</span> The action name.</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			determineAction
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methoddispatch" id="dispatch"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">dispatch</span> (line <span class="line-number">562</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Used by Rho::init() only - DO NOT CALL.</p>
<p class="description"><p>This function simply calls route().</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho.html#methodinit">Rho::init()</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#methodroute">Rho_Controller::route()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			dispatch
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodget" id="get"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">get</span> (line <span class="line-number">500</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Filtered access to $_GET .</p>
<p class="description"><p>Uses this method instead of $_GET directly.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> The filtered value or $default.</li>
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodpost">Rho_Controller::post()</a>, <a href="../Rho/Rho_Controller.html#methodcookie">Rho_Controller::cookie()</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho.html#methodfilter">Rho::filter()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			get
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span><span class="var-description">: The key of the $_GET array to access.</span>			</li>
					<li>
				<span class="var-type">string|int|float|bool</span>
				<span class="var-name">$default</span><span class="var-description">: Value to return if $key is not set.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetView" id="getView"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getView</span> (line <span class="line-number">746</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads a view and returns it as a string.</p>
<p class="description"><p>The view will not be sent, unlike loadView()</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getView
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$extra</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The name of the view to load (without a filename extension).</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$extra</span><span class="var-description">: Optional associative array of variables to pass to the view.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodindex" id="index"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">index</span> (line <span class="line-number">757</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Default controller action.</p>
<p class="description"><p>Called by route() when no action has been specified.  Should be overidden by child classes - by default it throws a 404 exception.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			index
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Rho/Rho-app/Home_Controller.html#methodindex">Home_Controller::index()</a>
								: Displays 'Hello World'.
							</li>
				</ul>
	</div>
<a name="methodlastModified" id="lastModified"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">lastModified</span> (line <span class="line-number">693</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Called by sendHeaders() if client side caching is active AND  HTTP_IF_MODIFIED_SINCE is set in the client request.</p>
<p class="description"><p>If HTTP_IF_MODIFIED_SINCE is greater than the modified time, 304 status HTTP headers are sent and the script terminates.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a>, <a href="../Rho/Rho_Controller.html#var$last_modified">Rho_Controller::$last_modified</a></li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			lastModified
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodloadView" id="loadView"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">loadView</span> (line <span class="line-number">724</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Loads and outputs a view file.</p>
<p class="description"><p>The default implementation uses PHP files for the view.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodgetView">Rho_Controller::getView()</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodgetView">Rho_Controller::getView()</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#var$view_ext">Rho_Controller::$view_ext</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#var$headers_sent">Rho_Controller::$headers_sent</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			loadView
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$name</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$extra</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$name</span><span class="var-description">: The name of the view to load (without a filename extension).</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$extra</span><span class="var-description">: Optional associative array of variables to pass to the view.</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Rho/Rho_HTML_Controller.html#methodloadView">Rho_HTML_Controller::loadView()</a>
								: Loads and outputs a view file.
							</li>
				</ul>
	</div>
<a name="methodpost" id="post"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">post</span> (line <span class="line-number">522</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Filtered access to $_POST .</p>
<p class="description"><p>Uses this method instead of $_POST directly.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> The filtered value or $default.</li>
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodget">Rho_Controller::get()</a>, <a href="../Rho/Rho_Controller.html#methodcookie">Rho_Controller::cookie()</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho.html#methodfilter">Rho::filter()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string|mixed</span>
		<span class="method-name">
			post
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, [<span class="var-type">string|int|float|bool</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">FALSE</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span><span class="var-description">: The key of the $_POST array to access.</span>			</li>
					<li>
				<span class="var-type">string|int|float|bool</span>
				<span class="var-name">$default</span><span class="var-description">: Value to return if $key is not set.</span>			</li>
				</ul>
		
			
	</div>
<a name="methodroute" id="route"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">route</span> (line <span class="line-number">574</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Determines what action to take based on the URI and/or client request - DO NOT CALL DIRECTLY.</p>
<p class="description"><p>Called by dispatch, which is called by Rho::init().  This method should not be called by anywhere else.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methoddispatch">Rho_Controller::dispatch()</a></li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methoddispatch">Rho_Controller::dispatch()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			route
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Rho/Rho_HTML_Controller.html#methodroute">Rho_HTML_Controller::route()</a>
								: Determines what action to take based on the URI and/or client request - DO NOT CALL DIRECTLY.
							</li>
				</ul>
	</div>
<a name="methodsendHeaders" id="sendHeaders"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">sendHeaders</span> (line <span class="line-number">640</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sends the HTTP headers necessary for the response.</p>
<p class="description"><p>Normally this method will be called automatically by the first call to loadView and does not need to be called.</p><p>This sends the content type and the respective cache control headers.  If you're using PHP's sessions, you MUST call this method BEFORE calling session_start().</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodloadView">Rho_Controller::loadView()</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#methodlastModified">Rho_Controller::lastModified()</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#var$headers_sent">Rho_Controller::$headers_sent</a></li>
				<li><span class="field">uses:</span> <a href="../Rho/Rho_Controller.html#methodsendNoCacheHeaders">Rho_Controller::sendNoCacheHeaders()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			sendHeaders
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsendNoCacheHeaders" id="sendNoCacheHeaders"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">sendNoCacheHeaders</span> (line <span class="line-number">680</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sends HTTP headers to indicate the response should not be cached by the client.</p>
<p class="description"><p>Does NOT do any checking - you should check headers_sent() or $this-&gt;headers_sent first.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a></li>
				<li><span class="field">access:</span> protected</li>
				<li><span class="field">usedby:</span> <a href="../Rho/Rho_Controller.html#methodsendHeaders">Rho_Controller::sendHeaders()</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			sendNoCacheHeaders
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method_onError" id="_onError"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">_onError</span> (line <span class="line-number">774</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Called when an critical error has occurred and the script will terminate.</p>
<p class="description"><p>This is called when: <ul><li>There is an uncaught expception</li><li>There is a major error (in which cause $e will be a ErrorException )</li><li>Rho::log() was called with an instance of Rho_Critical_Exception or it's decendants.</li></ul>  The HTTP status code header will already been sent.  This method must NOT call exit() or die() - this will be done after it returns when appropiate.</p><p>The Base implementation outputs the error message.</p></p>
	<ul class="tags">
				<li><span class="field">see:</span> Rho::log()</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			_onError
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$e</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Exception</span>
				<span class="var-name">&$e</span><span class="var-description">: The Rho_Critical_Exception (or uncaught exception) that is responsible.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Tue, 13 Oct 2009 19:17:19 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>